package com.sky.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal; // 导入 BigDecimal 类

@Data
public class OrderRefundDTO {
    @NotNull(message = "订单ID不能为空")
    private Long orderId;
    
    @NotNull(message = "退款金额不能为空")
    // @Min(value = 1, message = "退款金额必须大于0") // 移除或注释掉此行，因为Min注解不适用于BigDecimal
    private BigDecimal refundAmount; // 将类型修改为 BigDecimal
    
    private String refundReason;
}